package model

import (
	"../db"
	"github.com/jinzhu/gorm"
)

var mydb *gorm.DB

func init() {
	mydb = db.GetInstance()
	var user User
	var group Group
	var tag Tag
	var question Question
	var answerOption AnswerOption
	var itembank Itembank
	var category Category
	var options QuestionAnswerOptions

	mydb.AutoMigrate(&user, &group, &itembank, &tag, &category, &question, &answerOption, &options)
}
